package com.qihe.reviewj2se;

import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileWriter;
import java.io.IOException;

import org.junit.Test;

public class Thread {
	@Test
	public void testCreate() {
		try {
			File f = new File("d:/temp/temp/temp.temp");
			f.getParentFile().mkdirs();
			f.createNewFile();
			FileWriter fw = new FileWriter(f,true);
			fw.write("helloworld");
			fw.flush();
			fw.close();
		} catch (FileNotFoundException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
	
}
